package com.ruoyi.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mapper.VipDetailsMapper;
import com.ruoyi.domain.VipDetails;
import com.ruoyi.service.IVipDetailsService;
import com.ruoyi.common.core.text.Convert;

/**
 * 充值记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2020-08-10
 */
@Service
public class VipDetailsServiceImpl implements IVipDetailsService 
{
    @Autowired
    private VipDetailsMapper vipDetailsMapper;

    /**
     * 查询充值记录
     * 
     * @param id 充值记录ID
     * @return 充值记录
     */
    @Override
    public VipDetails selectVipDetailsById(Long id)
    {
        return vipDetailsMapper.selectVipDetailsById(id);
    }

    /**
     * 查询充值记录列表
     * 
     * @param vipDetails 充值记录
     * @return 充值记录
     */
    @Override
    public List<VipDetails> selectVipDetailsList(VipDetails vipDetails)
    {
        return vipDetailsMapper.selectVipDetailsList(vipDetails);
    }

    /**
     * 新增充值记录
     * 
     * @param vipDetails 充值记录
     * @return 结果
     */
    @Override
    public int insertVipDetails(VipDetails vipDetails)
    {
        return vipDetailsMapper.insertVipDetails(vipDetails);
    }

    /**
     * 修改充值记录
     * 
     * @param vipDetails 充值记录
     * @return 结果
     */
    @Override
    public int updateVipDetails(VipDetails vipDetails)
    {
        return vipDetailsMapper.updateVipDetails(vipDetails);
    }

    /**
     * 删除充值记录对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteVipDetailsByIds(String ids)
    {
        return vipDetailsMapper.deleteVipDetailsByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除充值记录信息
     * 
     * @param id 充值记录ID
     * @return 结果
     */
    @Override
    public int deleteVipDetailsById(Long id)
    {
        return vipDetailsMapper.deleteVipDetailsById(id);
    }

    @Override
    public List<VipDetails> selectVipDetailsLists(Long id) {
        return vipDetailsMapper.selectVipDetailsLists(id);
    }
}
